using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShoppingEntity
{
	/// <summary>
	/// 商品表实体类
	/// </summary>
	public class CommodityInfo:BaseDeleteEntity
	{
		/// <summary>
		/// 商品名称
		/// </summary>
		[Column(TypeName = "varchar(16)")]
		public string CommodityName { get; set; }
		/// <summary>
		/// 商品价格
		/// </summary>
		public int Price { get; set; }
		/// <summary>
		/// 商品数量
		/// </summary>
		public int Num { get; set; }
		/// <summary>
		/// 商品图片
		/// </summary>
		[Column(TypeName = "varchar(Max)")]
		public string CommodityImg { get; set; } 

		/// <summary>
		/// 商品详细
		/// </summary>
		[Column(TypeName = "varchar(120)")]
		public string Detail { get; set; }

		/// <summary>
		/// 发布时间
		/// </summary>
		public DateTime CreateTime { get; set; }
		/// <summary>
		/// 商品类型
		/// </summary>
		[Column(TypeName = "varchar(36)")]
		public string CategoryId { get; set; }
	}
}
